import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import * as echarts from 'echarts'

Vue.use(ElementUI)

// ���÷��������ǰ������Ĭ�Ϸ��͵� http://localhost:8081/api
var axios = require('axios')
axios.defaults.baseURL = '/api'

// ȫ��ע�ᣬ֮��������������ͨ�� this.$axios ��������
Vue.prototype.$axios = axios
Vue.config.productionTip = false

// echarts
Vue.prototype.$echarts = echarts

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  components: { App },
  template: '<App/>'
})
